#This poorly written script is offered to you by HorstWepper
#Copyright (C) 2007  HorstWepper

#CREDIT SECTION
#Bugfix pointed out by ShiningSun in the getGallPagesURL.awk script
#Bugfix pointed out by Tequilamb, Paul, belterone (_blank)
#Added an experimental resume function suggested by Tequilamb

#Name : Fap Grabr
#Version : 0.3.4
#This script uses the following GNU tools ported to win32
#(output of the ls command in the ./bin dir)
#mkdir.exe     sed.exe       wc.exe       gawk.exe
#ls.exe        rm.exe        sh.exe       wget.exe

#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version 2
#of the License, or any later version.

#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

#Include function file
. script/functions.sh

#Main
print "\t\t################################################"
print "\t\t#                  FAP  GRABr                  #"
print "\t\t################################################"
print "\t\tDownload entire imagefap galleries."
print "\t\tCopyright (C) 2010 by AbleGood"
print ""
print "\t\tVersion 0.0.1"
print "\t\t------------------------------------------------"

#init
if [ -s $F_WGET_CONF ]
then
	read_proxy_setting
fi

if [ -s $F_IS_CONF ]
then
	read_is_conf
fi
menu
